<#include "../common/_layout.html" />
<@head title="管理员编辑信息">
<style type="text/css">
	.cll {
		background-color: #ddd;
	}
</style>
</@head>
<@layout menu='/admin'>
<section class="content">
	<div class="row">
		<div class="col-xs-12">
			<div class="box">
				<form action="${ctx}/admin/save" method="post" role="form">
					<legend>添加/修改信息</legend>
					<input type="hidden" name="id" id="id" value="${admin.id!}">
					<div class="form-group">
						<label for="department">部门</label>
						<input type="text" class="form-control" id="department" name="department" placeholder="部门" value="${admin.department!}">
					</div>
					<div class="form-group">
						<label for="email">E-mail</label>
						<input type="text" class="form-control" id="email" name="email" placeholder="E-mail" value="${admin.email!}">
					</div>
					
					<div class="form-group">
						<label for="name">姓名</label>
						<input type="text" class="form-control" id="name" name="name" placeholder="姓名" value="${admin.name!}">
					</div>
					<div class="form-group">
						<label for="username">用户名</label>
						<input type="text" class="form-control" id="username" name="username" placeholder="用户名" value="${admin.username!}">
					</div>
					<button type="submit" class="btn btn-primary">保存</button><button type="submit" class="btn btn-cancle" onclick="javascript :history.back(-1);">返回</button>
				</form>
			</div>
		</div>
	</div>
</section>
</@layout>
<@scripts>
<script type="text/javascript">
	$(document).ready(function(){
		if($("#id").val()!=""){
			$("#pw").hide();
		}

	});
</script>
</@scripts>